<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<%@page import="avicit.platform6.core.locale.PlatformLocalesJSTL"%>
<%@page import="java.util.Locale"%>
<%@page import="avicit.platform6.api.session.SessionHelper"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="avicit.platform6.commons.utils.ViewUtil"%>
<%@ taglib prefix="sec"
	uri="/WEB-INF/tags/shiro.tld"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>全宗管理</title>
<base href="<%=ViewUtil.getRequestPath(request)%>">
<%@page import="avicit.platform6.api.sysshirolog.impl.AfterLoginSessionProcess"%>
<% 
Object lang=session.getAttribute(AfterLoginSessionProcess.SESSION_CURRENT_LANGUAGE_CODE);
String languageCode="zh_CN";
if(lang!=null){
	languageCode=lang.toString();
}
	Locale locale =SessionHelper.getLocaleByUser(request);
%>
<link href="static/css/custom/lantop/css/custom.css" type="text/css"  rel="stylesheet">
<jsp:include
	page="/avicit/platform6/component/common/EasyUIJsInclude.jsp"></jsp:include>
<jsp:include page="/avicit/im/common/ImUIJSCSSInclude.jsp"></jsp:include>
<script type="text/javascript"
	src="avicit/cbb/businessclass/fondsmanage/locale/language_<%=languageCode%>.js"></script>
	<script type="text/javascript" src="static/js/platform/index/js/divscroll.js"></script>
<script type="text/javascript">
	var sysId = "${param.sysId}";
	var cbbFondsDbId = ""; //上一次选中全总行记录ID
	var tabIndex = 0; //上一次tab页签选中索引，默认第一个页签
	
	//设置高度
	function getScreenWidth() {
	    return window.document.body.offsetWidth - 300;
	}
	var baseurl = "<%=ViewUtil.getRequestPath(request)%>";
	//此事件必须放在jsp中,不能提取到js中,否则不能加载数据
	$(function() {
	    //加载全宗树
	    loadCbbFondsDbTree();
	
	    //初始禁用全宗信息维护按钮
	    $("#buttonDbAdd").attr("disabled", true);
	    $("#buttonDbEdit").attr("disabled", true);
	    $("#buttonDbDelete").attr("disabled", true);
	});
	
	/**
	 * 左侧全宗树加载方法
	 */
	function loadCbbFondsDbTree() {
	    $('#cbbFondsDbTree').tree({
	        checkbox: false,
	        /* 是否带复选框 */
	        lines: false,
	        /* 线条 */
	        ethod: 'post',
	        /* 请求数据方式 */
	        url: 'platform/cbbFondsDbController/getChildsNode',
	        /* 请求数据地址 */
	        dataType: "json",
	        /* 数据格式 */
	        loadFilter: function(data) {
	            // 过滤后台返回的数据，处理不同json结构
	            if (data.data) {
	                return data.data;
	            } else {
	                return data;
	            }
	        },
			onLoadSuccess:function(){
				$("#west").perfectScrollbar();
			}
	    });
	
	    $('#cbbFondsDbTree').tree({
	        //单击树节点刷新
	        onClick: function(node) {
	            var nodeId = node.id;
	            if (node.attributes.ORG_DEPT_TYPE != "1" ) {
	                nodeId = node.attributes.OD_PARENT_ID;
	                $("#buttonDbAdd").attr("disabled", true);
	                $("#buttonDbEdit").attr("disabled", true);
	                $("#buttonDbDelete").attr("disabled", true);
	            } else {
	                $("#buttonDbAdd").attr("disabled", false);
	                $("#buttonDbEdit").attr("disabled", false);
	                $("#buttonDbDelete").attr("disabled", false);
	            }
	            $("#cbbFondsDbVDataGrid").datagrid("options").url = "platform/cbbFondsDbController/loadCbbFondsDb";
	            $('#cbbFondsDbVDataGrid').datagrid('load', {
	                orgId: nodeId,
	                sysId: sysId,
	                nodeId : nodeId
	            });
	        }
	    });
	}
	
	/**
	 * 删除全宗信息
	 */
	function db_delete(remind,content,confirm,confirmContent,success,failure,remind2,content2) {
	    var rows = $('#cbbFondsDbVDataGrid').datagrid('getSelections');
	    if ($('#cbbFondsDbVDataGrid').datagrid('getData').total == rows.length) {
	        //remind参数替换'提示',content参数替换'至少应保留一条记录！'
	    	$.messager.alert(remind, content, 'warning');
	        return;
	    }
	    var ids = [];
	    if (rows.length > 0) {
	        $.messager
	            .confirm(
	                //confirm参数替换'请确认',confirmContent参数替换'您确定要删除当前所选的数据？'
	            	confirm,
	                confirmContent,
	                function(b) {
	                    if (b) {
	                        for (var i = 0, length = rows.length; i < length; i++) {
	                            ids.push(rows[i].ID);
	                        }
	                        $
	                            .ajax({
	                                url: 'platform/cbbFondsDbController/deleteCbbFondsDb',
	                                data: {
	                                    ids: ids.join(',')
	                                },
	                                type: 'post',
	                                dataType: 'json',
	                                success: function(result) {
	                                    if (result.flag == "success") {
	                                        for (var i = 0; i < rows.length; i++) {
	                                            var index = $("#cbbFondsDbVDataGrid").datagrid("getRowIndex", rows[i]);
	                                            $("#cbbFondsDbVDataGrid").datagrid("deleteRow", index);
	                                        }
	
	                                        if (tabIndex == 0) {
	                                            $('#cbbFondsServerFtpDataGrid').datagrid({
	                                                url: 'platform/cbbFondsDbController/loadCbbFondsServer.json?fullsvrType=1&cbbFondsDbId=null&sysId=' + sysId
	                                            });
	                                        } else {
	                                            $('#cbbFondsServerWebDataGrid').datagrid({
	                                                url: 'platform/cbbFondsDbController/loadCbbFondsServer.json?fullsvrType=2&cbbFondsDbId=null&sysId=' + sysId
	                                            });
	                                        }
	
	                                        parent.parent.parent.$.messager.show({
	                                            title: '提示',
	                                            //success参数替换"删除成功!"
	                                            msg: success,
	                                            timeout: 2000,
	                                            showType: 'slide'
	                                        });
	                                    } else {
	                                        //failure参数替换'删除失败！'
	                                    	$.messager.alert('提示', failure, 'warning');
	                                    }
	                                }
	                            });
	                    }
	                });
	    } else {
	        //remind2参数替换'提示',content2参数替换'请选择要删除的记录！'
	    	$.messager.alert(remind2, content2, 'warning');
	    }
	}
	/**
	 * 删除全文服务器设置信息
	 */
	function server_delete() {
	    var rows = null;
	    if (tabIndex == 0) {
	        rows = $("#cbbFondsServerFtpDataGrid").datagrid('getSelections');
	    } else {
	        rows = $("#cbbFondsServerWebDataGrid").datagrid('getSelections');
	    }
	
	    var ids = [];
	    if (rows.length > 0) {
	        $.messager
	            .confirm(
	                '请确认',
	                '您确定要删除当前所选的数据？',
	                function(b) {
	                    if (b) {
	                        for (var i = 0, length = rows.length; i < length; i++) {
	                            ids.push(rows[i].ID);
	                        }
	                        $
	                            .ajax({
	                                url: 'platform/cbbFondsDbController/deleteCbbFondsServer',
	                                data: {
	                                    ids: ids.join(',')
	                                },
	                                type: 'post',
	                                dataType: 'json',
	                                success: function(result) {
	                                    if (result.flag == "success") {
	                                        if (tabIndex == 0) {
	                                            for (var i = 0; i < rows.length; i++) {
	                                                var index = $("#cbbFondsServerFtpDataGrid").datagrid("getRowIndex", rows[i]);
	                                                $("#cbbFondsServerFtpDataGrid").datagrid("deleteRow", index);
	                                            }
	                                        } else {
	                                            for (var i = 0; i < rows.length; i++) {
	                                                var index = $("#cbbFondsServerWebDataGrid").datagrid("getRowIndex", rows[i]);
	                                                $("#cbbFondsServerWebDataGrid").datagrid("deleteRow", index);
	                                            }
	                                        }
	
	                                        parent.parent.parent.$.messager.show({
	                                            title: '提示',
	                                            msg: "删除成功!",
	                                            timeout: 2000,
	                                            showType: 'slide'
	                                        });
	                                    } else {
	                                        $.messager.alert('提示', '删除失败！', 'warning');
	                                    }
	                                }
	                            });
	                    }
	                });
	    } else {
	        $.messager.alert('提示', '请选择要删除的记录！', 'warning');
	    }
	}
	
	//全宗库添加
	function db_add(remind,content,remind2,content2,fondsWarehouseAdd) {
	    var len = $('#cbbFondsDbVDataGrid').datagrid("getRows").length;
	    if (len > 0) {
	        //remind参数替换'提示',content参数替换'该组织下已存在记录！'
	    	$.messager.alert(remind, content, 'warning');
	        return true;
	    }
	    var curNode = $("#cbbFondsDbTree").tree("getSelected");
	    if (curNode == null) {
	        //remind2参数替换'提示',content2参数替换'请选择全宗单位！'
	    	$.messager.alert(remind2, content2, 'warning');
	        return true;
	    }
	    //fondsWarehouseAdd参数替换"全宗库添加"
	    var usd = new CommonDialog("dbAddDialog", "800", "300", "platform/cbbFondsDbController/toDbAddJsp?orgId=" + curNode.id + "&dialogId=dbAddDialog&date=" + new Date() + "&sysId=" + sysId, fondsWarehouseAdd, false, true, false);
	    usd.show();
	}
	
	//全宗保存完成后处理
	function cbbFondsDbSave(flag, dialogId, dataJson, type) {
	    $('#' + dialogId).dialog('close');
	    if (type == "add") {
	        $('#cbbFondsDbVDataGrid').datagrid('insertRow', {
	            index: 0,
	            row: dataJson
	        });
	    } else {
	        $('#cbbFondsDbVDataGrid').datagrid('updateRow', {
	            index: 0,
	            row: dataJson
	        });
	    }
	    $("#cbbFondsDbVDataGrid").datagrid("selectRow", 0);
	    if (flag == "0") {
	        //保存成功
	        parent.parent.parent.$.messager.show({
	            title: '提示',
	            msg: "保存成功!",
	            timeout: 2000,
	            showType: 'slide'
	        });
	    } else {
	        //保存失败
	        parent.parent.parent.$.messager.show({
	            title: '提示',
	            msg: "保存失败!",
	            timeout: 2000,
	            showType: 'slide'
	        });
	    }
	}
	
	//全宗库编辑
	function db_edit(remind,content,remind2,content2,edit) {
	    var row = $("#cbbFondsDbVDataGrid").datagrid('getSelections');
	    if (row.length == 1) {
	        var id = row[0].ID;
	        //edit参数替换"编辑"
	        var usd = new CommonDialog("dbEditDialog", "800", "300", "platform/cbbFondsDbController/toDbEditJsp?id=" + id + "&dialogId=dbEditDialog&date=" + new Date() + "&sysId=" + sysId, edit, false, true, false);
	        usd.show();
	    } else {
	        if (row != null && row.length < 1) {
	            //remind参数替换'提示',content参数替换'请选择要编辑的记录！'
	        	$.messager.alert(remind, content, 'warning');
	        } else {
	            //remind2参数替换'提示',content2参数替换'请选择一条数据进行编辑！'
	        	$.messager.alert(remind2, content2, 'warning');
	        }
	    }
	}
	
	//全宗记录单击事件
	function db_onSelect(rowIndex, rowData) {
	    if (!rowData) {
	        //没有全宗记录，清除全文服务器记录
	        if (tabIndex == 0) {
	            $('#cbbFondsServerFtpDataGrid').datagrid({
	                url: 'platform/cbbFondsDbController/loadCbbFondsServer.json?fullsvrType=1&cbbFondsDbId=null&sysId=' + sysId
	            });
	        } else {
	            $('#cbbFondsServerWebDataGrid').datagrid({
	                url: 'platform/cbbFondsDbController/loadCbbFondsServer.json?fullsvrType=2&cbbFondsDbId=null&sysId=' + sysId
	            });
	        }
	        cbbFondsDbId = "";
	        return true;
	    }
	    //加载全文服务器记录数据
	    cbbFondsServiceDatagridRecords(rowData, tabIndex);
	}
	
	//全宗记录记载成功事件
	function db_onLoadSuccess(data) {
	    $("#cbbFondsDbVDataGrid").datagrid("selectRow", 0);
	}
	
	//刷新全文服务器记录
	function cbbFondsServiceDatagridRecords(cbbFondsDb, curTabIndex) {
	    if (cbbFondsDbId == "" && tabIndex == 0) { //初始加载
	        $('#cbbFondsServerFtpDataGrid').datagrid({
	            url: 'platform/cbbFondsDbController/loadCbbFondsServer.json?fullsvrType=1&cbbFondsDbId=' + cbbFondsDb.ID + '&sysId=' + sysId
	        });
	    } else {
	        if (cbbFondsDbId == cbbFondsDb.id) { //全宗行记录未变更
	            if (curTabIndex != tabIndex) { //tab页签改变
	                if (curTabIndex == 0) {
	                    $('#cbbFondsServerFtpDataGrid').datagrid({
	                        url: 'platform/cbbFondsDbController/loadCbbFondsServer.json?fullsvrType=1&cbbFondsDbId=' + cbbFondsDb.ID + '&sysId=' + sysId
	                    });
	                } else {
	                    $('#cbbFondsServerWebDataGrid').datagrid({
	                        url: 'platform/cbbFondsDbController/loadCbbFondsServer.json?fullsvrType=2&cbbFondsDbId=' + cbbFondsDb.ID + '&sysId=' + sysId
	                    });
	                }
	            }
	
	        } else { //全总行记录改变，刷新全文服务器记录
	            if (curTabIndex == 0) {
	                $('#cbbFondsServerFtpDataGrid').datagrid({
	                    url: 'platform/cbbFondsDbController/loadCbbFondsServer.json?fullsvrType=1&cbbFondsDbId=' + cbbFondsDb.ID + '&sysId=' + sysId
	                });
	            } else {
	                $('#cbbFondsServerWebDataGrid').datagrid({
	                    url: 'platform/cbbFondsDbController/loadCbbFondsServer.json?fullsvrType=2&cbbFondsDbId=' + cbbFondsDb.ID + '&sysId=' + sysId
	                });
	            }
	            //全宗行记录变更，记录新记录ID
	            cbbFondsDbId = cbbFondsDb.ID;
	        }
	
	        tabIndex = curTabIndex;
	    }
	    cbbFondsDbId = cbbFondsDb.ID;
	}
	//tab页签选中事件
	function tabSelect(title, index) {
	    var cbbFondsDb = $("#cbbFondsDbVDataGrid").datagrid("getSelected");
	    if (cbbFondsDb) {
	        cbbFondsServiceDatagridRecords(cbbFondsDb, index);
	    }
	}
	
	//全文服务器添加
	function server_add() {
	    var row = $("#cbbFondsDbVDataGrid").datagrid("getSelected");
	    if (!row) {
	        $.messager.alert('提示', '请选择全宗记录！', 'warning');
	        return true;
	    }
	    var usd = new CommonDialog("serviceAddDialog", "800", "300", "platform/cbbFondsDbController/toServerAddJsp?cbbFondsDbId=" + row.ID + "&fondsDeptId=" + row.FONDS_DEPT_ID + "&dialogId=serviceAddDialog&date=" + new Date() + "&sysId=" + sysId, "全文服务器设置", false, true, false);
	    usd.show();
	}
	
	//全文服务器保存完成后处理
	function cbbFondsServerSave(flag, dialogId, dataJson, type) {
	    $('#' + dialogId).dialog('close');
	    if (dataJson.FULLSVR_TYPE == "1") {
	        if (type == "add") {
	            $('#cbbFondsServerFtpDataGrid').datagrid('insertRow', {
	                index: 0,
	                row: dataJson
	            });
	            $("#cbbFondsServerFtpDataGrid").datagrid("selectRow", 0);
	        } else {
	            var row = $("#cbbFondsServerFtpDataGrid").datagrid('getSelected');
	            var index = $("#cbbFondsServerFtpDataGrid").datagrid("getRowIndex", row);
	            $('#cbbFondsServerFtpDataGrid').datagrid('updateRow', {
	                index: index,
	                row: dataJson
	            });
	        }
	
	    } else {
	        if (type == "add") {
	            $('#cbbFondsServerWebDataGrid').datagrid('insertRow', {
	                index: 0,
	                row: dataJson
	            });
	            $("#cbbFondsServerWebDataGrid").datagrid("selectRow", 0);
	        } else {
	            var row = $("#cbbFondsServerWebDataGrid").datagrid('getSelected');
	            var index = $("#cbbFondsServerWebDataGrid").datagrid("getRowIndex", row);
	            $('#cbbFondsServerWebDataGrid').datagrid('updateRow', {
	                index: index,
	                row: dataJson
	            });
	        }
	    }
	    if (flag == "0") {
	        //保存成功
	        parent.parent.parent.$.messager.show({
	            title: '提示',
	            msg: "保存成功!",
	            timeout: 2000,
	            showType: 'slide'
	        });
	    } else {
	        //保存失败
	        parent.parent.parent.$.messager.show({
	            title: '提示',
	            msg: "保存失败!",
	            timeout: 2000,
	            showType: 'slide'
	        });
	    }
	}
	
	//全宗库添加
	function server_edit() {
	    var row = null;
	    if (tabIndex == 0) {
	        row = $("#cbbFondsServerFtpDataGrid").datagrid('getSelections');
	    } else {
	        row = $("#cbbFondsServerWebDataGrid").datagrid('getSelections');
	    }
	
	    if (row.length == 1) {
	        var id = row[0].ID;
	        var usd = new CommonDialog("serverEditDialog", "800", "300", "platform/cbbFondsDbController/toServerEditJsp?id=" + id + "&dialogId=serverEditDialog&date=" + new Date(), "全宗服务器编辑", false, true, false);
	        usd.show();
	    } else {
	        if (row != null && row.length < 1) {
	            $.messager.alert('提示', '请选择要编辑的记录！', 'warning');
	        } else {
	            $.messager.alert('提示', '请选择一条数据进行编辑!', 'warning');
	        }
	    }
	}
	
	function formatIsEncrypt(value, rowData, rowIndex) {
	    if (value == "Y") {
	        return "是";
	    } else {
	        return "否";
	    }
	}
	
	function freDataGrid() {
	    var dbNode = $("#cbbFondsDbTree").tree("getSelected");
	    $('#cbbFondsDbVDataGrid').datagrid('reload');
	}
	
	//添加序号
	function getPageSize(value, row, index){
	    index+=1;//设置起始序号为1，如果不加这行代码序号就会从0开始
	    return index++;//根据行的数量不断自增
	}
</script>
<style type="text/css">
.textbox {
	border: solid 1px #a5acb5;
}

.input,img {
	vertical-align: middle;
}

<!--
实现input和img水平对齐 -->.labelbg {
	background:
		url('../../js/jQuery/jquery-easyui-1.3.5/themes/icons/required.gif')
		right 0 no-repeat;
}
</style>
</head>
<body id="myBody" class="easyui-layout">
	<div id="west" data-options="region:'west',title:'<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.classifyTree","i18n.lantop",locale)%>',split:true,border:false,collapsible:false" style="width:300px;overflow-x: hidden;overflow-y: auto;">
		 <ul id="cbbFondsDbTree" class="easyui-tree"></ul> 
	</div>
	<div data-options="region:'center'" style="width: 250px">
		<div id="toolbarDb" class="datagrid-toolbar" style="height: auto; display: block;padding:10px 0;padding-left:5px;">
			<sec:accesscontrollist hasPermission="3" domainObject="ibsckpi_bt_add">
				<%-- 添加 --%>
				<%-- <a class="easyui-linkbutton" title="<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.add","i18n.lantop",locale)%>" id="buttonDbAdd" iconCls="icon-im-add"
					plain="true" onclick="db_add('<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.add.remind","i18n.lantop",locale)%>','<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.add.remind.content","i18n.lantop",locale)%>','<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.add.remind2","i18n.lantop",locale)%>','<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.add.remind2.content2","i18n.lantop",locale)%>','<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.add.fondsWarehouseAdd","i18n.lantop",locale)%>');" href="javascript:void(0);"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.add","i18n.lantop",locale)%></a> --%>
				<a  style="margin-left: 20px;"  onclick="db_add('<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.add.remind","i18n.lantop",locale)%>','<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.add.remind.content","i18n.lantop",locale)%>','<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.add.remind2","i18n.lantop",locale)%>','<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.add.remind2.content2","i18n.lantop",locale)%>','<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.add.fondsWarehouseAdd","i18n.lantop",locale)%>');" title="<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.add","i18n.lantop",locale)%>" id="buttonDbAdd" href="javascript:void(0)" class="easyui-linkbutton selbtn">
				<img src="avicit/im/lantop/documents/Filecollection/img/icon_tool08_blue.png"><span class="selbtc"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.add","i18n.lantop",locale)%></span></a>
			</sec:accesscontrollist>
			<sec:accesscontrollist hasPermission="3" domainObject="ibsckpi_bt_edit">
				<%-- 编辑 --%>
				<%-- <a class="easyui-linkbutton" title="<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.edit","i18n.lantop",locale)%>" id="buttonDbEdit" iconCls="icon-im-edit"
					plain="true" onclick="db_edit('<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.edit.remind","i18n.lantop",locale)%>','<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.edit.remind.content","i18n.lantop",locale)%>','<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.edit.remind2","i18n.lantop",locale)%>','<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.edit.remind2.content2","i18n.lantop",locale)%>','<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.edit.edit","i18n.lantop",locale)%>');" href="javascript:void(0);"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.edit","i18n.lantop",locale)%></a> --%>
				<a onclick="db_edit('<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.edit.remind","i18n.lantop",locale)%>','<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.edit.remind.content","i18n.lantop",locale)%>','<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.edit.remind2","i18n.lantop",locale)%>','<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.edit.remind2.content2","i18n.lantop",locale)%>','<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.edit.edit","i18n.lantop",locale)%>');" title="<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.edit","i18n.lantop",locale)%>" id="buttonDbEdit" href="javascript:void(0)" class="easyui-linkbutton selbtn">
				<img src="avicit/im/lantop/common/search/image/icon_tool30_blue.png"><span class="selbtc"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.edit","i18n.lantop",locale)%></span></a>
			</sec:accesscontrollist>
			<sec:accesscontrollist hasPermission="3"
				domainObject="ibsckpi_bt_delete">
				<%-- 删除 --%>
				<%-- <a class="easyui-linkbutton" title="<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.delete","i18n.lantop",locale)%>" id="buttonDbDelete" plain="true"
					iconCls="icon-im-remove" plain="true" onclick="db_delete('<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.delete.remind","i18n.lantop",locale)%>','<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.delete.remind.content","i18n.lantop",locale)%>','<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.delete.confirm","i18n.lantop",locale)%>','<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.delete.confirm.confirmContent","i18n.lantop",locale)%>','<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.delete.success","i18n.lantop",locale)%>','<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.delete.failure","i18n.lantop",locale)%>','<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.delete.remind2","i18n.lantop",locale)%>','<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.delete.remind2.content2","i18n.lantop",locale)%>');"
					href="javascript:void(0);"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.delete","i18n.lantop",locale)%></a> --%>
				<a onclick="db_delete('<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.delete.remind","i18n.lantop",locale)%>','<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.delete.remind.content","i18n.lantop",locale)%>','<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.delete.confirm","i18n.lantop",locale)%>','<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.delete.confirm.confirmContent","i18n.lantop",locale)%>','<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.delete.success","i18n.lantop",locale)%>','<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.delete.failure","i18n.lantop",locale)%>','<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.delete.remind2","i18n.lantop",locale)%>','<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.delete.remind2.content2","i18n.lantop",locale)%>');" title="<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.delete","i18n.lantop",locale)%>" id="buttonDbDelete" href="javascript:void(0)" class="easyui-linkbutton selbtn">
				<img src="avicit/im/lantop/common/search/image/icon_tool835_blue.png"><span class="selbtc"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.button.delete","i18n.lantop",locale)%></span></a>
			</sec:accesscontrollist>
		</div>
		<%-- <div id="toolbarServer1" class="datagrid-toolbar" style="height: auto; display: block;">
			<sec:accesscontrollist hasPermission="3" domainObject="ibsckpi_bt_add">
				<a class="easyui-linkbutton" title="全文服务器设置" id="buttonServerAdd1" iconCls="icon-im-add"
					plain="true" onclick="server_add();" href="javascript:void(0);">全文服务器设置</a>
			</sec:accesscontrollist>
			<sec:accesscontrollist hasPermission="3" domainObject="ibsckpi_bt_edit">
				<a class="easyui-linkbutton" title="编辑" id="buttonServerEdit1" iconCls="icon-im-edit"
					plain="true" onclick="server_edit();" href="javascript:void(0);">编辑</a>
			</sec:accesscontrollist>
			<sec:accesscontrollist hasPermission="3"
				domainObject="ibsckpi_bt_delete">
				<a class="easyui-linkbutton" title="删除" id="buttonServerDelete3" plain="true"
					iconCls="icon-im-remove" plain="true" onclick="server_delete();"
					href="javascript:void(0);">删除</a>
			</sec:accesscontrollist>
		</div>
		<div id="toolbarServer2" class="datagrid-toolbar" style="height: auto; display: block;">
			<sec:accesscontrollist hasPermission="3" domainObject="ibsckpi_bt_add">
				<a class="easyui-linkbutton" title="全文服务器设置" id="buttonServerAdd2" iconCls="icon-im-add"
					plain="true" onclick="server_add();" href="javascript:void(0);">全文服务器设置</a>
			</sec:accesscontrollist>
			<sec:accesscontrollist hasPermission="3" domainObject="ibsckpi_bt_edit">
				<a class="easyui-linkbutton" title="编辑" id="buttonServerEdit2" iconCls="icon-im-edit"
					plain="true" onclick="server_edit();" href="javascript:void(0);">编辑</a>
			</sec:accesscontrollist>
			<sec:accesscontrollist hasPermission="3"
				domainObject="ibsckpi_bt_delete">
				<a class="easyui-linkbutton" title="删除" id="buttonServerDelete3" plain="true"
					iconCls="icon-im-remove" plain="true" onclick="server_delete();"
					href="javascript:void(0);">删除</a>
			</sec:accesscontrollist>
		</div> --%>
		<div class="easyui-layout" data-options="fit:true">
				 <div data-options="region:'center'" style="overflow-y: hidden;">
				 	<table id="cbbFondsDbVDataGrid" class="easyui-datagrid"
						data-options="
					rownumbers: false,
					animate: false,
					collapsible: false,
					fitColumns:true,
					scrollbarSize:0,
					autoRowHeight: false,
					singleSelect: false,
					pagination:true,
					pageNumber:0,
					pageSize:20, 
					pageList:[20,30,50], 
					toolbar:'#toolbarDb',
		    		striped:true,
					fit:true,
					method: 'post',
					onSelect: db_onSelect,
					onLoadSuccess: db_onLoadSuccess
				">
						<thead>
							<tr>
								<sec:accesscontrollist  hasPermission="3" domainObject ="commtempletmanager_comm_templet_manager_datagrid_id">
									<th data-options="field:'ID', halign:'center',checkbox:true"
										title="主键ID" width="20">主键ID</th>
								</sec:accesscontrollist>
								<sec:accesscontrollist  hasPermission="3" domainObject ="commtempletmanager_comm_templet_manager_datagrid_id">
								   <%-- 序号 --%>
		            		        <th data-options="field:'ROWNUM', halign:'center', align:'center', sortable:false,editor:{type:'text'}, fixed: true, width: 55, formatter:getPageSize"
										title="序号" editor="{type:'',options:{required:true}}">序号</th>
								</sec:accesscontrollist>
								<sec:accesscontrollist  hasPermission="3" domainObject ="commtempletmanager_comm_templet_manager_datagrid_colName">
									<%-- 全宗号 --%>
									<th
										data-options="field:'ORG_CODE', halign:'center', align:'center', sortable:false,editor:{type:'text'}"
										width="100" title="全宗号"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.table.allArchiveNum","i18n.lantop",locale)%></th>
								</sec:accesscontrollist>
								<sec:accesscontrollist  hasPermission="3" domainObject ="commtempletmanager_comm_templet_manager_datagrid_colLabel">
									<%-- 全宗单位名称 --%>
									<th
										data-options="field:'ORG_NAME', halign:'center', align:'center', sortable:false,editor:{type:'text'}"
										width="100" title="全宗单位名称"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.table.allArchiveDeptName","i18n.lantop",locale)%></th>
								</sec:accesscontrollist>
								<sec:accesscontrollist  hasPermission="3" domainObject ="commtempletmanager_comm_templet_manager_datagrid_colType">
									<%-- 数据库名称 --%>
									<th
										data-options="field:'DB_NAME', halign:'center', align:'center', sortable:false,editor:{type:'text'}"
										width="100" title="数据库名称"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.table.databaseName","i18n.lantop",locale)%></th>
								</sec:accesscontrollist>
								<sec:accesscontrollist  hasPermission="3" domainObject ="commtempletmanager_comm_templet_manager_datagrid_colLength">
									<%-- 数据库IP --%>
									<th
										data-options="field:'DB_IP', halign:'center', align:'center', sortable:false,editor:{type:'text'}"
										width="100" title="数据库IP"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.table.databaseIP","i18n.lantop",locale)%></th>
								</sec:accesscontrollist>
								<sec:accesscontrollist  hasPermission="3" domainObject ="commtempletmanager_comm_templet_manager_datagrid_colDecimal">
									<%-- 端口 --%>
									<th
										data-options="field:'DB_PORT', halign:'center', align:'center', sortable:false,editor:{type:'text'}"
										width="100" title="端口"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.table.port","i18n.lantop",locale)%></th>
								</sec:accesscontrollist>
								<sec:accesscontrollist  hasPermission="3" domainObject ="commtempletmanager_comm_templet_manager_datagrid_colIsMust">
									<%-- 数据库用户名 --%>
									<th
										data-options="field:'DB_USER', halign:'center', align:'center', sortable:false,editor:{type:'text'}"
										width="100" title="数据库用户名"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.fondsmanager.table.databaseUserName","i18n.lantop",locale)%></th>
								</sec:accesscontrollist>
							</tr>
						</thead>
					</table>
				 </div>
				 <%-- <div data-options="region:'center'" >
				 	<div id="tt" class="easyui-tabs" style="overflow-y: hidden;" data-options="onSelect:tabSelect" fit="true">   
					    <div title="FTP全文服务器设置" style="padding:0px;">   
					        <table id="cbbFondsServerFtpDataGrid" class="easyui-datagrid"
									data-options="
								rownumbers: true,
								animate: false,
								collapsible: false,
								fitColumns: true,
								autoRowHeight: false,
								singleSelect: false,
								pagination:true,
								pageNumber:0,
								pageSize:20, 
								pageList:[20,30,50],
								toolbar:'#toolbarServer1',
					    		striped:true,
								fit:true,
								method: 'post'
							">
									<thead>
										<tr>
											<sec:accesscontrollist  hasPermission="3" domainObject ="commtempletmanager_comm_templet_manager_datagrid_id">
												<th data-options="field:'ID', halign:'center',checkbox:true"
													title="主键ID" width="20">主键ID</th>
											</sec:accesscontrollist>
											<sec:accesscontrollist  hasPermission="3" domainObject ="commtempletmanager_comm_templet_manager_datagrid_colName">
												<th
													data-options="field:'ORG_CODE', halign:'center', align:'center', sortable:false,editor:{type:'text'}"
													width="100" title="全宗号">全宗号</th>
											</sec:accesscontrollist>
											<sec:accesscontrollist  hasPermission="3" domainObject ="commtempletmanager_comm_templet_manager_datagrid_colLabel">
												<th
													data-options="field:'ORG_NAME', halign:'center', align:'center', sortable:false,editor:{type:'text'}"
													width="100" title="全宗单位名称">全宗单位名称</th>
											</sec:accesscontrollist>
											<sec:accesscontrollist  hasPermission="3" domainObject ="commtempletmanager_comm_templet_manager_datagrid_colType">
												<th
													data-options="field:'SVR_ADDRESS', halign:'center', align:'center', sortable:false,editor:{type:'text'}"
													width="100" title="服务器地址">服务器地址</th>
											</sec:accesscontrollist>
											<sec:accesscontrollist  hasPermission="3" domainObject ="commtempletmanager_comm_templet_manager_datagrid_colLength">
												<th
													data-options="field:'SVR_PUBLISH_PATH', halign:'center', align:'center', sortable:false,editor:{type:'text'}"
													width="100" title="发布路径">发布路径</th>
											</sec:accesscontrollist>
											<sec:accesscontrollist  hasPermission="3" domainObject ="commtempletmanager_comm_templet_manager_datagrid_colDecimal">
												<th
													data-options="field:'FTP_USER', halign:'center', align:'center', sortable:false,editor:{type:'text'}"
													width="100" title="FTP用户名">FTP用户名</th>
											</sec:accesscontrollist>
											<sec:accesscontrollist  hasPermission="3" domainObject ="commtempletmanager_comm_templet_manager_datagrid_colIsSys">
												<th
													data-options="field:'ftpPassword', halign:'center', align:'center', sortable:false,editor:{type:'checkbox'}"
													width="100" title="FTP密码">FTP密码</th>
											</sec:accesscontrollist>
										</tr>
									</thead>
								</table>   
					    </div>   
					    <div title="WebService全文服务器设置" style="overflow:auto;padding:0px;">   
					        <table id="cbbFondsServerWebDataGrid" class="easyui-datagrid"
									data-options="
								rownumbers: true,
								animate: false,
								collapsible: false,
								fitColumns: true,
								autoRowHeight: false,
								singleSelect: false,
								pagination:true,
								pageNumber:0,
								pageSize:20, 
								pageList:[20,30,50],
								toolbar:'#toolbarServer2',
					    		striped:true,
								fit:true,
								method: 'post'
							">
									<thead>
										<tr>
											<sec:accesscontrollist  hasPermission="3" domainObject ="commtempletmanager_comm_templet_manager_datagrid_id">
												<th data-options="field:'ID', halign:'center',checkbox:true"
													title="主键ID" width="20">主键ID</th>
											</sec:accesscontrollist>
											<sec:accesscontrollist  hasPermission="3" domainObject ="commtempletmanager_comm_templet_manager_datagrid_colName">
												<th
													data-options="field:'ORG_CODE', halign:'center', align:'center', sortable:false,editor:{type:'text'}"
													width="100" title="全宗号">全宗号</th>
											</sec:accesscontrollist>
											<sec:accesscontrollist  hasPermission="3" domainObject ="commtempletmanager_comm_templet_manager_datagrid_colLabel">
												<th
													data-options="field:'ORG_NAME', halign:'center', align:'center', sortable:false,editor:{type:'text'}"
													width="100" title="全宗单位名称">全宗单位名称</th>
											</sec:accesscontrollist>
											<sec:accesscontrollist  hasPermission="3" domainObject ="commtempletmanager_comm_templet_manager_datagrid_colType">
												<th
													data-options="field:'SVR_ADDRESS', halign:'center', align:'center', sortable:false,editor:{type:'text'}"
													width="100" title="服务器地址">服务器地址</th>
											</sec:accesscontrollist>
											<sec:accesscontrollist  hasPermission="3" domainObject ="commtempletmanager_comm_templet_manager_datagrid_colLength">
												<th
													data-options="field:'SVR_PUBLISH_PATH', halign:'center', align:'center', sortable:false,editor:{type:'text'}"
													width="100" title="发布路径">发布路径</th>
											</sec:accesscontrollist>
											<sec:accesscontrollist  hasPermission="3" domainObject ="commtempletmanager_comm_templet_manager_datagrid_isEncrypt">
												<th
													data-options="field:'IS_ENCRYPT', halign:'center', align:'center', sortable:false,editor:{type:'text'}, formatter:formatIsEncrypt"
													width="100" title="是否加密">是否加密</th>
											</sec:accesscontrollist>
											<sec:accesscontrollist  hasPermission="3" domainObject ="commtempletmanager_comm_templet_manager_datagrid_remark">
												<th
													data-options="field:'REMARK', halign:'center', align:'center', sortable:false,editor:{type:'checkbox'}"
													width="100" title="备注">备注</th>
											</sec:accesscontrollist>
										</tr>
									</thead>
								</table>
					    </div>    
					</div>  
				</div> --%>
		</div>
	</div>
</body>
</html>
